package com.tanhua.appserver.service;

import com.tanhua.model.domain.Question;
import com.tanhua.dubbointerface.api.QuestionApi;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class QuestionService {
    @DubboReference
    private QuestionApi questionApi;

    public void update(String question,Long userId) {
        Question ques = questionApi.findQuestionByUserId(userId);
        ques.setTxt(question);
        questionApi.update(ques);
    }
}
